package com.zhxin.nettylab.decoder.chapter1;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @ClassName StringProcessHandler
 * @Description //字符串 入站业务处理器
 * @Author singleZhang
 * @Email 405780096@qq.com
 * @Date 2020/12/7 0007 下午 2:44
 **/
public class StringProcessHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx,Object msg){
        String s = (String)msg;
        System.out.println(s);
    }
}
